import { defineStore } from 'pinia'

export const paramsDataStore = defineStore({
  id: 'paramsData',
  state: () => {
    return {
      stationArea:[
        {
          value:'1',
          label:'表位1',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'2',
          label:'表位2',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'3',
          label:'表位3',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'4',
          label:'表位4',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'5',
          label:'表位5',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'6',
          label:'表位6',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'7',
          label:'表位7',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'8',
          label:'表位8',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'9',
          label:'表位9',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'10',
          label:'表位10',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'11',
          label:'表位11',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'12',
          label:'表位12',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'13',
          label:'表位13',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'14',
          label:'表位14',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'15',
          label:'表位15',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'16',
          label:'表位16',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        }
      ],
      newStationArea:[
        {
          value:'1',
          label:'表位1',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'2',
          label:'表位2',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'3',
          label:'表位3',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'4',
          label:'表位4',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'5',
          label:'表位5',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'6',
          label:'表位6',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'7',
          label:'表位7',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'8',
          label:'表位8',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'9',
          label:'表位9',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'10',
          label:'表位10',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'11',
          label:'表位11',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'12',
          label:'表位12',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'13',
          label:'表位13',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'14',
          label:'表位14',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'15',
          label:'表位15',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'16',
          label:'表位16',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        }
      ],
      stationData:[
        {
          value:'1',
          label:'表位1',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'2',
          label:'表位2',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'3',
          label:'表位3',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'4',
          label:'表位4',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'5',
          label:'表位5',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'6',
          label:'表位6',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'7',
          label:'表位7',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'8',
          label:'表位8',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'9',
          label:'表位9',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'10',
          label:'表位10',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'11',
          label:'表位11',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'12',
          label:'表位12',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'13',
          label:'表位13',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'14',
          label:'表位14',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'15',
          label:'表位15',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        },
        {
          value:'16',
          label:'表位16',
          color:'',
          stationText:'',
          state:0,
          checked:false,
          disabled:false,
        }
      ],
      selectedArea:[]
    }
  },
  actions: {
  },
  persist: {
    enabled: true,
    encryptionKey: 'paramsData',
    strategies: [
      {
        key: 'paramsData',
        storage: sessionStorage,
      },
    ],
  },
})
